{% extends "layout/base.html" %}

{% block title %}example1{% endblock %}

{% block body %}
    GET: <br/>
    <div>
    {% for key, val in params %}
    {{ key }} : {{ val }} <br/>
    {% endfor %}
    <br/>
    </div>
    POST:
    <div id="postData"></div>
{% endblock %}

{% block script %}
<script src="js/lib/zepto.js"></script>
<script src="js/lib/vue.min.js"></script>
<script>
$.post('/example1',{command:'getSMGCode'}, (d) => {
    document.querySelector('#postData').innerHTML = JSON.stringify(d);
});
</script>
{% endblock %}
